﻿using System;
using System.Collections.Generic;
using System.Text;

namespace OT.Module.ViewData
{
    [Serializable]
    public class VLoginInfo
    {
        private string mCompanyId;
        private string mCompanyName;
        private string mDeptId;
        private string mDeptName;
        private string mUserId;
        private string mUserName;
        private VPermission mVPermission;

        /// <summary>
        /// 用户所属公司ID
        /// </summary>
        public string CompanyId
        {
            get { return mCompanyId; }
            set { mCompanyId = value; }
        }
        /// <summary>
        /// 用户所属公司名称
        /// </summary>
        public string CompanyName
        {
            get { return mCompanyName; }
            set { mCompanyName = value; }
        }
        /// <summary>
        /// 用户所属部门ID
        /// </summary>
        public string DeptId
        {
            get { return mDeptId; }
            set { mDeptId = value; }
        }
        /// <summary>
        /// 用户所属部门名称
        /// </summary>
        public string DeptName
        {
            get { return mDeptName; }
            set { mDeptName = value; }
        }
        /// <summary>
        /// 用户ID
        /// </summary>
        public string UserId
        {
            get { return mUserId; }
            set { mUserId = value; }
        }
        /// <summary>
        /// 用户名称
        /// </summary>
        public string UserName
        {
            get { return mUserName; }
            set { mUserName = value; }
        }

        public VPermission VPermission
        {
            get { return mVPermission; }
            set { mVPermission = value; }
        }
    }

    public class VPermission
    {
        private List<VFunctions> mVFunctions;
        /// <summary>
        /// 功能权限
        /// </summary>
        public List<VFunctions> VFunctions
        {
            get { return mVFunctions; }
            set { mVFunctions = value; }
        }
    }

    public class VFunctions
    {
        private string mFuncCode;
        private string mFuncType;
        private string mURI;
        private string mURI2;
        private string mIsDFP;
        /// <summary>
        /// 功能编码
        /// </summary>
        public string FuncCode
        {
            get { return mFuncCode; }
            set { mFuncCode = value; }
        }
        /// <summary>
        /// 功能类型
        /// </summary>
        public string FuncType
        {
            get { return mFuncType; }
            set { mFuncType = value; }
        }
        /// <summary>
        /// URI
        /// </summary>
        public string URI
        {
            get { return mURI; }
            set { mURI = value; }
        }
        /// <summary>
        /// URI2
        /// </summary>
        public string URI2
        {
            get { return mURI2; }
            set { mURI2 = value; }
        }
        /// <summary>
        /// 是否启动交叉权限
        /// </summary>
        public string IsDFP
        {
            get { return mIsDFP; }
            set { mIsDFP = value; }
        }

    }
}
